<html>
<head><meta charset="utf-8"><title>embedded rust and longan nano · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html">embedded rust and longan nano</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="216167258"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167258" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Ivan Serdyuk <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167258">(Nov 10 2020 at 02:33)</a>:</h4>
<p>Hi.<br>
I am getting such errors:<br>
~/Desktop/rust-sipeed-longan-nano-master$ cargo --verbose build<br>
   Compiling r0 v0.2.2<br>
     Running <code>rustc --crate-name r0 /home/oceanfish81/.cargo/registry/src/github.com-1ecc6299db9ec823/r0-0.2.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=eb599f2d7dd9e219 -C extra-filename=-eb599f2d7dd9e219 --out-dir /home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps --target riscv32imac-unknown-none-elf -L dependency=/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps -L dependency=/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/debug/deps --cap-lints allow -C link-arg=-Tlink.x</code><br>
error[E0463]: can't find crate for <code>core</code><br>
  |<br>
  = note: the <code>riscv32imac-unknown-none-elf</code> target may not be installed</p>
<p>error: aborting due to previous error</p>
<p>For more information about this error, try <code>rustc --explain E0463</code>.<br>
error: could not compile <code>r0</code>.</p>
<p>Caused by:<br>
  process didn't exit successfully: <code>rustc --crate-name r0 /home/oceanfish81/.cargo/registry/src/github.com-1ecc6299db9ec823/r0-0.2.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=eb599f2d7dd9e219 -C extra-filename=-eb599f2d7dd9e219 --out-dir /home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps --target riscv32imac-unknown-none-elf -L dependency=/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps -L dependency=/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/debug/deps --cap-lints allow -C link-arg=-Tlink.x</code> (exit code: 1)</p>
<p>$ uname -a<br>
Linux gollvm 4.15.0-122-generic <a href="https://github.com/rust-lang/rust/issues/124">#124</a>~16.04.1-Ubuntu SMP Thu Oct 15 16:14:02 UTC 2020 i686 i686 i686 GNU/Linux</p>



<a name="216167338"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167338" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167338">(Nov 10 2020 at 02:35)</a>:</h4>
<p>how did you install rust?</p>



<a name="216167430"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167430" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Ivan Serdyuk <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167430">(Nov 10 2020 at 02:37)</a>:</h4>
<p>Hello, <span class="user-mention" data-user-id="232545">@Joshua Nelson</span> .<br>
I did that via</p>
<blockquote>
<p>$ sudo apt install rustc</p>
</blockquote>



<a name="216167440"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167440" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167440">(Nov 10 2020 at 02:37)</a>:</h4>
<p>I see, and you're cross-compiling</p>



<a name="216167443"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167443" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Ivan Serdyuk <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167443">(Nov 10 2020 at 02:37)</a>:</h4>
<p>but then I have installed rustup, via snap - so maybe there are issues, cause of that</p>



<a name="216167446"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167446" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167446">(Nov 10 2020 at 02:37)</a>:</h4>
<p>the issue is that you don't have the standard library for the target installed</p>



<a name="216167448"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167448" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167448">(Nov 10 2020 at 02:37)</a>:</h4>
<p>which I don't know how to do with apt</p>



<a name="216167489"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167489" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167489">(Nov 10 2020 at 02:38)</a>:</h4>
<p>with rustup, you'd fix this with <code>rustup target add riscv32imac-unknown-none-elf</code></p>



<a name="216167490"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167490" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Ivan Serdyuk <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167490">(Nov 10 2020 at 02:38)</a>:</h4>
<p>OK, what do I have to build?</p>



<a name="216167501"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167501" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167501">(Nov 10 2020 at 02:38)</a>:</h4>
<p>building from source is overkill for this</p>



<a name="216167509"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167509" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167509">(Nov 10 2020 at 02:38)</a>:</h4>
<p>I would use rustup or find a way to do it with apt (maybe it's packaged under a different name?)</p>



<a name="216167512"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167512" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Ivan Serdyuk <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167512">(Nov 10 2020 at 02:39)</a>:</h4>
<p>$ rustup target add riscv32imac-unknown-none-elf<br>
info: downloading component 'rust-std' for 'riscv32imac-unknown-none-elf'<br>
info: installing component 'rust-std' for 'riscv32imac-unknown-none-elf'<br>
info: Defaulting to 500.0 MiB unpack ram<br>
  5.0 MiB /   5.0 MiB (100 %)   4.3 MiB/s in  1s ETA:  0s<br>
$ cargo build<br>
   Compiling r0 v0.2.2<br>
error[E0463]: can't find crate for <code>core</code><br>
  |<br>
  = note: the <code>riscv32imac-unknown-none-elf</code> target may not be installed</p>
<p>error: aborting due to previous error</p>
<p>For more information about this error, try <code>rustc --explain E0463</code>.<br>
error: could not compile <code>r0</code>.</p>
<p>To learn more, run the command again with --verbose.</p>



<a name="216167522"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167522" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167522">(Nov 10 2020 at 02:39)</a>:</h4>
<p>that looks like the rust version you have isn't going through rustup</p>



<a name="216167523"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167523" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167523">(Nov 10 2020 at 02:39)</a>:</h4>
<p>try uninstalling the apt version</p>



<a name="216167531"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167531" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Ivan Serdyuk <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167531">(Nov 10 2020 at 02:39)</a>:</h4>
<p><span class="user-mention silent" data-user-id="232545">Joshua Nelson</span> <a href="#narrow/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano/near/216167509">said</a>:</p>
<blockquote>
<p>I would use rustup or find a way to do it with apt (maybe it's packaged under a different name?)</p>
</blockquote>
<p>what exactly should I search for?</p>



<a name="216167585"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167585" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167585">(Nov 10 2020 at 02:40)</a>:</h4>
<p>I don't know, sorry</p>



<a name="216167592"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167592" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Ivan Serdyuk <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167592">(Nov 10 2020 at 02:40)</a>:</h4>
<p>$ sudo apt remove rustc<br>
Reading package lists... Done<br>
Building dependency tree       <br>
Reading state information... Done<br>
The following packages were automatically installed and are no longer required:<br>
  libhttp-parser2.1 libstd-rust-1.43 libstd-rust-dev rust-gdb snapd-login-service<br>
Use 'sudo apt autoremove' to remove them.<br>
The following packages will be REMOVED:<br>
  cargo rustc<br>
0 upgraded, 0 newly installed, 2 to remove and 1 not upgraded.<br>
After this operation, 18,0 MB disk space will be freed.<br>
Do you want to continue? [Y/n] y<br>
(Reading database ... 234397 files and directories currently installed.)<br>
Removing cargo (0.44.1-0ubuntu1~16.04.1) ...<br>
Removing rustc (1.43.0+dfsg1+llvm-1~exp1ubuntu2~16.04.1) ...<br>
Processing triggers for man-db (2.7.5-1) ...<br>
oceanfish81@gollvm:~/Desktop/rust-sipeed-longan-nano-master$ rustup --version<br>
rustup 1.22.1 (b01adbbc3 2020-07-08)</p>



<a name="216167594"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167594" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Ivan Serdyuk <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167594">(Nov 10 2020 at 02:40)</a>:</h4>
<p>what's next?</p>



<a name="216167603"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167603" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167603">(Nov 10 2020 at 02:41)</a>:</h4>
<p>try building again</p>



<a name="216167611"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167611" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Ivan Serdyuk <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167611">(Nov 10 2020 at 02:41)</a>:</h4>
<p>$ cargo build<br>
bash: /usr/bin/cargo: No such file or directory</p>



<a name="216167617"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167617" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oliver <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167617">(Nov 10 2020 at 02:41)</a>:</h4>
<p>I think you must install Rust from the website</p>



<a name="216167660"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167660" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167660">(Nov 10 2020 at 02:42)</a>:</h4>
<p><span class="user-mention" data-user-id="363262">@Ivan Serdyuk</span> bash cached the path, try <code>hash -d cargo</code></p>



<a name="216167675"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167675" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Ivan Serdyuk <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167675">(Nov 10 2020 at 02:42)</a>:</h4>
<blockquote>
<p>$ hash -d cargo<br>
gives no output</p>
</blockquote>



<a name="216167685"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167685" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167685">(Nov 10 2020 at 02:43)</a>:</h4>
<p>yes, and now try again</p>



<a name="216167767"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167767" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Ivan Serdyuk <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167767">(Nov 10 2020 at 02:45)</a>:</h4>
<p>via <a href="https://forge.rust-lang.org/infra/other-installation-methods.html#other-ways-to-install-rustup">https://forge.rust-lang.org/infra/other-installation-methods.html#other-ways-to-install-rustup</a> or via <a href="https://forge.rust-lang.org/infra/other-installation-methods.html#standalone-installers">https://forge.rust-lang.org/infra/other-installation-methods.html#standalone-installers</a> ?</p>



<a name="216167808"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167808" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167808">(Nov 10 2020 at 02:46)</a>:</h4>
<p>you don't need to reinstall rustup, it's already installed</p>



<a name="216167887"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167887" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167887">(Nov 10 2020 at 02:48)</a>:</h4>
<p>it might help to know that rustup is a 'rust version manager', like nvm or rvm</p>



<a name="216167889"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167889" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167889">(Nov 10 2020 at 02:48)</a>:</h4>
<p>it is not the compiler itself</p>



<a name="216167901"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167901" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167901">(Nov 10 2020 at 02:49)</a>:</h4>
<p>the standalone installers are the compiler itself</p>



<a name="216167902"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167902" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167902">(Nov 10 2020 at 02:49)</a>:</h4>
<p>and that <em>doesn't</em> help you because you need to cross compile</p>



<a name="216167909"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216167909" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216167909">(Nov 10 2020 at 02:49)</a>:</h4>
<p>and the standalone installers only come with a standard library for the host target</p>



<a name="216168046"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168046" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oliver <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168046">(Nov 10 2020 at 02:52)</a>:</h4>
<p>afiak apt doesn't install rustup though</p>



<a name="216168050"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168050" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Ivan Serdyuk <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168050">(Nov 10 2020 at 02:52)</a>:</h4>
<p>~/Desktop/rust-sipeed-longan-nano-master$ cargo build<br>
    Updating <a href="http://crates.io">crates.io</a> index<br>
  Downloaded r0 v0.2.2<br>
  Downloaded panic-abort v0.3.1<br>
  Downloaded 2 crates (14.7 KB) in 0.87s<br>
   Compiling panic-abort v0.3.1<br>
error[E0554]: <code>#![feature]</code> may not be used on the stable release channel<br>
  --&gt; /home/oceanfish81/.cargo/registry/src/github.com-1285ae84e5963aae/panic-abort-0.3.1/src/lib.rs:22:1<br>
   |<br>
22 | #![feature(core_intrinsics)]<br>
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^</p>
<p>error[E0554]: <code>#![feature]</code> may not be used on the stable release channel<br>
  --&gt; /home/oceanfish81/.cargo/registry/src/github.com-1285ae84e5963aae/panic-abort-0.3.1/src/lib.rs:23:1<br>
   |<br>
23 | #![feature(panic_handler)]<br>
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^</p>
<p>error: aborting due to 2 previous errors</p>
<p>For more information about this error, try <code>rustc --explain E0554</code>.<br>
error: could not compile <code>panic-abort</code>.</p>
<p>To learn more, run the command again with --verbose.</p>



<a name="216168055"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168055" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168055">(Nov 10 2020 at 02:52)</a>:</h4>
<p>you need a nightly version of rust then</p>



<a name="216168060"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168060" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168060">(Nov 10 2020 at 02:52)</a>:</h4>
<p>or to stop using libraries that require nightly</p>



<a name="216168063"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168063" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Ivan Serdyuk <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168063">(Nov 10 2020 at 02:52)</a>:</h4>
<p><span class="user-mention silent" data-user-id="281739">oliver</span> <a href="#narrow/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano/near/216168046">said</a>:</p>
<blockquote>
<p>afiak apt doesn't install rustup though</p>
</blockquote>
<p>no, but snap does</p>



<a name="216168066"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168066" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168066">(Nov 10 2020 at 02:53)</a>:</h4>
<p><span class="user-mention silent" data-user-id="281739">oliver</span> <a href="#narrow/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano/near/216168046">said</a>:</p>
<blockquote>
<p>afiak apt doesn't install rustup though</p>
</blockquote>
<p>right, but apt itself acts as a rust version manager</p>



<a name="216168071"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168071" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oliver <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168071">(Nov 10 2020 at 02:53)</a>:</h4>
<p>ooh snap idk then</p>



<a name="216168077"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168077" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168077">(Nov 10 2020 at 02:53)</a>:</h4>
<p>so it's conceivable it could package the standard library for other targets</p>



<a name="216168081"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168081" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168081">(Nov 10 2020 at 02:53)</a>:</h4>
<p>not sure if it actually does</p>



<a name="216168083"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168083" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oliver <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168083">(Nov 10 2020 at 02:53)</a>:</h4>
<p>yeah apt is then the rustup</p>



<a name="216168135"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168135" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oliver <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168135">(Nov 10 2020 at 02:54)</a>:</h4>
<p>tbh I don't see a reason to use apt unless you're in a restricted <br>
dev environment</p>



<a name="216168143"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168143" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168143">(Nov 10 2020 at 02:54)</a>:</h4>
<p>apt allows multi-user installs</p>



<a name="216168148"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168148" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168148">(Nov 10 2020 at 02:54)</a>:</h4>
<p><a href="https://github.com/rust-lang/rustup/issues/313">https://github.com/rust-lang/rustup/issues/313#</a></p>



<a name="216168164"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168164" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oliver <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168164">(Nov 10 2020 at 02:55)</a>:</h4>
<p>yeah apt is pretty great! not to diss it</p>



<a name="216168172"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168172" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168172">(Nov 10 2020 at 02:55)</a>:</h4>
<p>well you did ask for a reason :P</p>



<a name="216168224"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168224" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oliver <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168224">(Nov 10 2020 at 02:56)</a>:</h4>
<p>surely you can arrange multi-user without apt :P</p>



<a name="216168239"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168239" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168239">(Nov 10 2020 at 02:57)</a>:</h4>
<p>I didn't find a way</p>



<a name="216168244"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168244" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168244">(Nov 10 2020 at 02:57)</a>:</h4>
<p>maybe there is one <span aria-label="shrug" class="emoji emoji-1f937" role="img" title="shrug">:shrug:</span></p>



<a name="216168245"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168245" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Ivan Serdyuk <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168245">(Nov 10 2020 at 02:57)</a>:</h4>
<p><a href="https://pramode.in/2019/10/07/rust-on-riscv-board-sipeed-longan-nano/">https://pramode.in/2019/10/07/rust-on-riscv-board-sipeed-longan-nano/</a> - it is explain to use "nightly"</p>



<a name="216168502"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168502" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oliver <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168502">(Nov 10 2020 at 03:03)</a>:</h4>
<p>current stable on debian is 1.41</p>



<a name="216168562"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168562" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oliver <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168562">(Nov 10 2020 at 03:04)</a>:</h4>
<p>this is where my assumption is you can't get nightly using apt</p>



<a name="216168566"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168566" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oliver <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168566">(Nov 10 2020 at 03:04)</a>:</h4>
<p>I'd like to be wrong</p>



<a name="216168572"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168572" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Ivan Serdyuk <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168572">(Nov 10 2020 at 03:05)</a>:</h4>
<p>I have some progress <br>
$ rustup target add riscv32imac-unknown-none-elf<br>
info: component 'rust-std' for target 'riscv32imac-unknown-none-elf' is up to date<br>
~/Desktop/rust-sipeed-longan-nano-master$ rustup default nightly<br>
info: using existing install for 'nightly-i686-unknown-linux-gnu'<br>
info: default toolchain set to 'nightly-i686-unknown-linux-gnu'</p>
<p>nightly-i686-unknown-linux-gnu unchanged - rustc 1.49.0-nightly (1773f60ea 2020-11-08)</p>
<p>~/Desktop/rust-sipeed-longan-nano-master$ rustup target add riscv32imac-unknown-none-elf<br>
info: component 'rust-std' for target 'riscv32imac-unknown-none-elf' is up to date<br>
~/Desktop/rust-sipeed-longan-nano-master$ rustup target add riscv32imac-unknown-none-elf<br>
info: component 'rust-std' for target 'riscv32imac-unknown-none-elf' is up to date<br>
~/Desktop/rust-sipeed-longan-nano-master$ cargo --verbose build<br>
   Compiling r0 v0.2.2<br>
     Running <code>rustc --crate-name r0 /home/oceanfish81/.cargo/registry/src/github.com-1285ae84e5963aae/r0-0.2.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=c85b5ab54aceb5f9 -C extra-filename=-c85b5ab54aceb5f9 --out-dir /home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps --target riscv32imac-unknown-none-elf -L dependency=/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps -L dependency=/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/debug/deps --cap-lints allow -C link-arg=-Tlink.x</code><br>
   Compiling panic-abort v0.3.1<br>
     Running <code>rustc --crate-name panic_abort /home/oceanfish81/.cargo/registry/src/github.com-1285ae84e5963aae/panic-abort-0.3.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=37322ac1e75fee7c -C extra-filename=-37322ac1e75fee7c --out-dir /home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps --target riscv32imac-unknown-none-elf -L dependency=/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps -L dependency=/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/debug/deps --cap-lints allow -C link-arg=-Tlink.x</code><br>
   Compiling rust-sipeed-longan-nano v0.1.0 (/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master)<br>
     Running <code>rustc --crate-name rust_sipeed_longan_nano --edition=2018 src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=2df4b3c694b8dfb5 -C extra-filename=-2df4b3c694b8dfb5 --out-dir /home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps --target riscv32imac-unknown-none-elf -C incremental=/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/incremental -L dependency=/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps -L dependency=/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/debug/deps --extern panic_abort=/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps/libpanic_abort-37322ac1e75fee7c.rlib --extern r0=/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps/libr0-c85b5ab54aceb5f9.rlib -C link-arg=-Tlink.x</code><br>
warning: unnecessary parentheses around assigned value<br>
 --&gt; src/main.rs:8:25<br>
  |<br>
8 | const rcu_apb2en: u32 = (0x4002_1000 + 0x18);<br>
  |                         ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses<br>
  |<br>
  = note: <code>#[warn(unused_parens)]</code> on by default</p>
<p>warning: unnecessary parentheses around assigned value<br>
  --&gt; src/main.rs:10:25<br>
   |<br>
10 | const gpioa_ctl0: u32 = (0x4001_0800 + 0x0);<br>
   |                         ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses</p>
<p>warning: unnecessary parentheses around assigned value<br>
  --&gt; src/main.rs:11:25<br>
   |<br>
11 | const gpioa_data: u32 = (0x4001_0800 + 0xc);<br>
   |                         ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses</p>
<p>warning: unused import: <code>panic_abort</code><br>
  --&gt; src/main.rs:13:5<br>
   |<br>
13 | use panic_abort;<br>
   |     ^^^^^^^^^^^<br>
   |<br>
   = note: <code>#[warn(unused_imports)]</code> on by default</p>
<p>warning: constant <code>rcu_apb2en</code> should have an upper case name<br>
 --&gt; src/main.rs:8:7<br>
  |<br>
8 | const rcu_apb2en: u32 = (0x4002_1000 + 0x18);<br>
  |       ^^^^^^^^^^ help: convert the identifier to upper case: <code>RCU_APB2EN</code><br>
  |<br>
  = note: <code>#[warn(non_upper_case_globals)]</code> on by default</p>
<p>warning: constant <code>gpioa_ctl0</code> should have an upper case name<br>
  --&gt; src/main.rs:10:7<br>
   |<br>
10 | const gpioa_ctl0: u32 = (0x4001_0800 + 0x0);<br>
   |       ^^^^^^^^^^ help: convert the identifier to upper case: <code>GPIOA_CTL0</code></p>
<p>warning: constant <code>gpioa_data</code> should have an upper case name<br>
  --&gt; src/main.rs:11:7<br>
   |<br>
11 | const gpioa_data: u32 = (0x4001_0800 + 0xc);<br>
   |       ^^^^^^^^^^ help: convert the identifier to upper case: <code>GPIOA_DATA</code></p>
<p>error: linking with <code>rust-lld</code> failed: exit code: 1<br>
  |<br>
  = note: "rust-lld" "-flavor" "gnu" "-L" "/home/oceanfish81/snap/rustup/common/rustup/toolchains/nightly-i686-unknown-linux-gnu/lib/rustlib/riscv32imac-unknown-none-elf/lib" "/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps/rust_sipeed_longan_nano-2df4b3c694b8dfb5.19pbfx1e7ppiz22i.rcgu.o" "/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps/rust_sipeed_longan_nano-2df4b3c694b8dfb5.1gxn96a4ynn6krtc.rcgu.o" "/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps/rust_sipeed_longan_nano-2df4b3c694b8dfb5.1rrq47tcmo7r1d7q.rcgu.o" "/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps/rust_sipeed_longan_nano-2df4b3c694b8dfb5.2oywxm1qwyrau2j5.rcgu.o" "/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps/rust_sipeed_longan_nano-2df4b3c694b8dfb5.36wqpyrxaht0bqyw.rcgu.o" "/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps/rust_sipeed_longan_nano-2df4b3c694b8dfb5.4g879aqcx3v63xcn.rcgu.o" "/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps/rust_sipeed_longan_nano-2df4b3c694b8dfb5.hpztk5fc5xtxkyj.rcgu.o" "-o" "/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps/rust_sipeed_longan_nano-2df4b3c694b8dfb5" "--gc-sections" "-L" "/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps" "-L" "/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/debug/deps" "-L" "/home/oceanfish81/snap/rustup/common/rustup/toolchains/nightly-i686-unknown-linux-gnu/lib/rustlib/riscv32imac-unknown-none-elf/lib" "-Bstatic" "/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps/libr0-c85b5ab54aceb5f9.rlib" "--start-group" "/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps/libpanic_abort-37322ac1e75fee7c.rlib" "/home/oceanfish81/snap/rustup/common/rustup/toolchains/nightly-i686-unknown-linux-gnu/lib/rustlib/riscv32imac-unknown-none-elf/lib/librustc_std_workspace_core-1bd0d3673780d693.rlib" "/home/oceanfish81/snap/rustup/common/rustup/toolchains/nightly-i686-unknown-linux-gnu/lib/rustlib/riscv32imac-unknown-none-elf/lib/libcore-5aec724f1f867fb1.rlib" "--end-group" "/home/oceanfish81/snap/rustup/common/rustup/toolchains/nightly-i686-unknown-linux-gnu/lib/rustlib/riscv32imac-unknown-none-elf/lib/libcompiler_builtins-deaf2d068ddf18c0.rlib" "-Tlink.x" "-Bdynamic"<br>
  = note: rust-lld: error: no memory region specified for section '.eh_frame'</p>
<p>error: aborting due to previous error; 7 warnings emitted</p>
<p>error: could not compile <code>rust-sipeed-longan-nano</code></p>
<p>Caused by:<br>
  process didn't exit successfully: <code>rustc --crate-name rust_sipeed_longan_nano --edition=2018 src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=2df4b3c694b8dfb5 -C extra-filename=-2df4b3c694b8dfb5 --out-dir /home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps --target riscv32imac-unknown-none-elf -C incremental=/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/incremental -L dependency=/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps -L dependency=/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/debug/deps --extern panic_abort=/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps/libpanic_abort-37322ac1e75fee7c.rlib --extern r0=/home/oceanfish81/Desktop/rust-sipeed-longan-nano-master/target/riscv32imac-unknown-none-elf/debug/deps/libr0-c85b5ab54aceb5f9.rlib -C link-arg=-Tlink.x</code> (exit code: 1)</p>



<a name="216168588"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168588" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oliver <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168588">(Nov 10 2020 at 03:05)</a>:</h4>
<p>so you got rustup using apt??</p>



<a name="216168590"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168590" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168590">(Nov 10 2020 at 03:05)</a>:</h4>
<blockquote>
<p>= note: rust-lld: error: no memory region specified for section '.eh_frame'</p>
</blockquote>
<p>well that's exciting</p>



<a name="216168592"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/embedded%20rust%20and%20longan%20nano/near/216168592" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/embedded.20rust.20and.20longan.20nano.html#216168592">(Nov 10 2020 at 03:05)</a>:</h4>
<p>I don't know how to fix that, it sounds target-specific</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>